package com.my.study.jdkproxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

    public class JdkHandler implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("方法执行前");
        method.invoke(proxy,args);
        System.out.println("方法执行后");
        return null;
    }
}
